package example_05;

public class shuixianhuashu {
    public static void main(String[] args) {
        int a=153;
        shuixianhua(153);
    }
    public static void shuixianhua(int a){
        if((int)Math.pow(a/100,3)+(int)Math.pow(a%100/10,3)+(int)Math.pow(a%10,3)==a){
            System.out.println("a是水仙花数。");
        }
        else {
            System.out.println("a不是水仙花数。");
        }
    }
}
